package com.gitee.designpattern.state.wxmp.state;

import com.gitee.designpattern.state.wxmp.entity.User;

/**
 * @author ming.yan-1
 * @version V1.0
 * @Title com.gitee.designpattern.state.wxmp.state
 * @Description 第二个状态
 * @date 2018/8/22  下午5:17
 */
public class StateS extends UserState{
    @Override
    public void preState(User user) {
        user.setBaseState(new StateS());
    }

    @Override
    public void nextState(User user) {
        user.setBaseState(new StateT());
    }

    @Override
    public void printCurrentState() {
        System.out.println("there is second state");
    }
}
